<template>
  <div style="padding: 20px">
    <h2>Sync修饰符</h2>
    <span>爸爸现在有{{ money }}元</span>
    <son :mo="money" @update:mo="money = $event"/>
    <son2 :money.sync="money"/>
  </div>
</template>

<script>
import Son from "@/pages/test/sync/Son";
import Son2 from "@/pages/test/sync/Son2";
export default {
  name: "Father",
  components: { Son,Son2 },
  data() {
    return {
      money: 10000,
      // mo:5000
    };
  },
};
</script>

<style>
</style>